<template>
  <div id="app">
    <router-view/>

  </div>
</template>

<script>
  export default {
    name: 'App',

    beforeCreate: function () {
      console.log("创建前");

    },
    created: function () {
      console.log("创建后");
    },
    beforeMount: function () {
      console.log("挂载前");
    },
    mounted: function () {
      console.log("挂载后");
    },
    beforeUpdate: function () {
      console.log("更新前");
    },
    updated: function () {
      console.log("更新后");
    },
    beforeDestroy: function () {
      console.log("销毁前");
    },
    destroyed: function () {
      console.log("销毁后");
    },methods:{

    }
  }

</script>

<style>
  #app {
    font-family: 'Avenir', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /*text-align: center;*/
    font-size: 16px;
    color: #2c3e50;
    margin-bottom:49px;
  }

  /*
  修改底部tabBar的选中颜色
  由于tabbar中的图标是字体图标，所以只需要color就可以了
  */
  .van-tabbar-item--active {
    color: red;
  }
  .van-search__action{
    color: orange;
  }
</style>
